function c1 = ham_itrans(c0);
% PURPOSE: inverse transform Hamilton model parameters
% ---------------------------------------------
% Usage: out = ham_itrans(parm);
% where: parm = a vector of input probabilities
% ---------------------------------------------
% RETURNS: out = a vector of inverse transformed parameters
% out = -log((1-parm)/parm)
% ---------------------------------------------
% NOTE: only first 2 elements of parm are transformed
%       remaining elements are untouched
% ---------------------------------------------
% SEE ALSO: ham_trans, this function reverses ham_trans()
% ---------------------------------------------

% written by:
% James P. LeSage, Dept of Economics
% Texas State University-San Marcos
% 601 University Drive
% San Marcos, TX 78666
% jlesage@spatial-econometrics.com

c1=c0;

for i=1:2;
c1(i,1) = -log((1-c0(i,1))/c0(i,1));
end;

